package com.yh.csx.crm.core.util;

import java.util.Random;

/**
 * @author Huang Zhaoping
 * @date 2019/1/21
 */
public class RandomUtils {

    public static String randomNumberCode(int num) {
        Random random = new Random(System.currentTimeMillis());
        StringBuilder sb = new StringBuilder();
        while (num-- > 0) {
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }
}
